import { createRouter, createWebHistory } from 'vue-router'
import config from './config'

const BASE = config.base

// 路由信息
const routes = [
  {
    path: `${BASE}`,
    redirect: `${BASE}/input`,
  },
  {
    path: `${BASE}/input`,
    component: () => import('./views/input/input.vue'),
  },
]

// 导出路由
const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
